package algorithm;
/**
 * 优化算法工厂接口
 * @author nyc
 *
 */
public  interface AlgFactory {
	/**
	 * 创建算法对象
	 * @return：算法对象
	 */
	public Alg  createAlg();
	/*{	
		Alg  alg=null;
		if(algName.equals("GA")){//单目标带学习机制GA
			PopuBuilder popuBld = new GAPopuBuilder();
			alg= new AbsGAAlg(popuBld);
		}
		if(algName.equals("NoLearnGA")){//单目标不带学习机制GA
			PopuBuilder popuBld = new NoLearnGAPopuBuilder();
			alg= new AbsGAAlg(popuBld);
		}
		if(algName.equals("NSGA")){//多目标带学习机制
			PopuBuilder popuBld = new NSGAPopuBuilder();
			alg= new NSGAAlg(popuBld);
		}
		if(algName.equals("NoLearnNSGA")){//多目标带学习机制
			PopuBuilder popuBld = new NoLearnNSGAPopuBuilder();
			alg= new NSGAAlg(popuBld);
		}
		return alg;
	}*/
}
